﻿
namespace SynergyLib.Friendly
{
    public static class FriendlyFileNameGenerator
    {
        static char[] DELIMITERS = { '\\' };

        public static string GetFriendlyName(string unfriendlyname)
        {
            if (unfriendlyname != null)
            {
                int startLocation = unfriendlyname.LastIndexOf('\\') + 1;
                int endlocation = unfriendlyname.Length - startLocation;

                return unfriendlyname.Substring(startLocation, endlocation);
            }
            else
                return null;
        }
    }
}
